Fedora 26
Sponsored Link

Install Clamav AntiVirus
2017/07/16
 
Install Clam AntiVirus to protect your System from Virus.
[1] Install Clamav.
[root@dlp ~]#
dnf -y install clamav clamav-update
[root@dlp ~]#
vi /etc/freshclam.conf
# line 8: comment out

#
Example
[root@dlp ~]#
vi /etc/sysconfig/freshclam
# end line: comment out

#
FRESHCLAM_DELAY=disabled-warn
# update pattern files

[root@dlp ~]#
freshclam

ClamAV update process started at Mon Jul 16 14:15:51 2017
main.cld is up to date (version: 58, sigs: 4566249, f-level: 60, builder: sigmgr)
daily.cvd is up to date (version: 23570, sigs: 1740460, f-level: 63, builder: neo)
bytecode.cld is up to date (version: 306, sigs: 65, f-level: 63, builder: raynman)
[2] Try to scan.
[root@dlp ~]#
clamscan --infected --remove --recursive /home
----------- SCAN SUMMARY -----------
Known viruses: 6301203
Engine version: 0.99.2
Scanned directories: 3
Scanned files: 8
Infected files: 0
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 9.486 sec (0 m 9 s)

# download trial virus

[root@dlp ~]#
wget http://www.eicar.org/download/eicar.com
[root@dlp ~]#
clamscan --infected --remove --recursive .

# just detected

./eicar.com: Eicar-Test-Signature FOUND
./eicar.com: Removed.

----------- SCAN SUMMARY -----------
Known viruses: 6301203
Engine version: 0.99.2
Scanned directories: 4
Scanned files: 10
Infected files: 1
Data scanned: 0.00 MB
Data read: 0.00 MB (ratio 0.00:1)
Time: 8.691 sec (0 m 8 s)
 
Tweet